class UserInfoModel{
  String id;
  String username;
  String truename;
  String svip;
  String phone;
  String head;
  String pid;
  String level;
  String group;
  String money;
  String myr;
  String usdt;
  String status;
  String ach;
  String one_ach;
  String sach;
  String share_rewards;
  String push_reward;
  String peer_reward;
  String agent_reward;
  String total_reward;
  String is_white;
  String capping;
  String level_title;
  dynamic transferaccounts_fee;
  dynamic exchange_fee;
  UserInfoModel({this.id,this.username,this.truename,this.svip,this.phone,this.head,this.pid,this.level,this.group,
  this.money,this.myr,this.usdt,this.status,this.ach,this.one_ach,this.sach,this.share_rewards,this.push_reward,
  this.peer_reward,this.agent_reward,this.total_reward,this.is_white,this.capping,this.level_title,this.transferaccounts_fee,this.exchange_fee});
  UserInfoModel.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    username = json['username'];
    truename = json['truename'];
    svip = json['svip'];
    phone = json['phone'];
    head = json['head'];
    pid = json['pid'];
    level = json['level'];
    group = json['group'];
    money = json['money'];
    myr = json['myr'];
    usdt = json['usdt'];
    status = json['status'];
    ach = json['ach'];
    one_ach = json['one_ach'];
    sach = json['sach'];
    share_rewards = json['share_rewards'];
    push_reward = json['push_reward'];
    peer_reward = json['peer_reward'];
    agent_reward = json['agent_reward'];
    total_reward = json['total_reward'];
    is_white = json['is_white'];
    capping = json['capping'];
    level_title = json['level_title'];
    transferaccounts_fee = json['transferaccounts_fee'];
    exchange_fee = json['exchange_fee'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['username'] = this.username;
    data['truename'] = this.truename;
    data['svip'] = this.svip;
    data['phone'] = this.phone;
    data['head'] = this.head;
    data['pid'] = this.pid;
    data['level'] = this.level;
    data['group'] = this.group;
    data['money'] = this.money;
    data['myr'] = this.myr;
    data['usdt'] = this.usdt;
    data['status'] = this.status;
    data['ach'] = this.ach;
    data['one_ach'] = this.one_ach;
    data['sach'] = this.sach;
    data['share_rewards'] = this.share_rewards;
    data['push_reward'] = this.push_reward;
    data['peer_reward'] = this.peer_reward;
    data['agent_reward'] = this.agent_reward;
    data['total_reward'] = this.total_reward;
    data['is_white'] = this.is_white;
    data['capping'] = this.capping;
    data['level_title'] = this.level_title;
    data['transferaccounts_fee'] = this.transferaccounts_fee;
    data['exchange_fee'] = this.exchange_fee;
    return data;
  }
}



class AddressModel{
  String isdefault;
  String detailed_address;
  String id;
  String name;
  String mobile;
  AddressModel({this.isdefault,this.detailed_address,this.id,this.name,this.mobile});
  AddressModel.fromJson(Map<String, dynamic> json) {
    isdefault = json['isdefault'];
    id = json['id'];
    name = json['name'];
    detailed_address = json['detailed_address'];
    mobile = json['mobile'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['isdefault'] = this.isdefault;
    data['detailed_address'] = this.detailed_address;
    data['id'] = this.id;
    data['name'] = this.name;
    data['mobile'] = this.mobile;
    return data;
  }
}


class FundsListModel{
  String id;
  String uid;
  String sn;
  String type;
  String amount;
  String balance;
  String notes;
  String time;
  FundsListModel({this.id,this.uid,this.sn,this.type,this.amount,this.balance,this.notes,this.time});
  FundsListModel.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    uid = json['uid'];
    sn = json['sn'];
    type = json['type'];
    amount = json['amount'];
    balance = json['balance'];
    notes = json['notes'];
    time = json['time'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['uid'] = this.uid;
    data['sn'] = this.sn;
    data['type'] = this.type;
    data['amount'] = this.amount;
    data['balance'] = this.balance;
    data['notes'] = this.notes;
    data['time'] = this.time;
    return data;
  }
}

class PointsSetModel{
  String id;
  String uid;
  String money;
  String no;
  String total;
  String cost;
  PointsSetModel({this.id,this.uid,this.money,this.no,this.total,this.cost});
  PointsSetModel.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    uid = json['uid'];
    money = json['money'];
    no = json['no'];
    total = json['total'];
    cost = json['cost'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['uid'] = this.uid;
    data['money'] = this.money;
    data['no'] = this.no;
    data['total'] = this.total;
    data['cost'] = this.cost;
    return data;
  }
}


class WithdrawInfo{
  String money;
  dynamic middleMoney;
  dynamic successMoney;
  String withdraw_fee;
  String withdraw_low;
  String withdraw_high;
  WithdrawInfo({this.money,this.middleMoney,this.successMoney,this.withdraw_fee,this.withdraw_low,this.withdraw_high});
  WithdrawInfo.fromJson(Map<String, dynamic> json) {
    money = json['money'];
    middleMoney = json['middleMoney'];
    successMoney = json['successMoney'];
    withdraw_fee = json['withdraw_fee'];
    withdraw_low = json['withdraw_low'];
    withdraw_high = json['withdraw_high'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['money'] = this.money;
    data['middleMoney'] = this.middleMoney;
    data['successMoney'] = this.successMoney;
    data['withdraw_fee'] = this.withdraw_fee;
    data['withdraw_low'] = this.withdraw_low;
    data['withdraw_high'] = this.withdraw_high;
    return data;
  }
}

class WithdrawRecord{
  String id;
  String serial;
  String money;
  String amount;
  String charge;
  String type;
  String time;
  String status;
  String cause;
  WithdrawRecord({this.id,this.serial,this.money,this.amount,this.charge,this.type,this.time,this.status,this.cause});
  WithdrawRecord.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    serial = json['serial'];
    money = json['money'];
    amount = json['amount'];
    charge = json['charge'];
    type = json['type'];
    time = json['time'];
    status = json['status'];
    cause = json['cause'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['serial'] = this.serial;
    data['money'] = this.money;
    data['amount'] = this.amount;
    data['charge'] = this.charge;
    data['type'] = this.type;
    data['time'] = this.time;
    data['status'] = this.status;
    data['cause'] = this.cause;
    return data;
  }
}









class UserPsw{
  String username;
  String password;
  UserPsw({this.username,this.password,});
  UserPsw.fromJson(Map<String, dynamic> json) {
    username = json['username'];
    password = json['password'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['username'] = this.username;
    data['password'] = this.password;
    return data;
  }

  UserPsw.fromDB(Map<String, Object> json) {
    username = json['user_name'];
    password = json['pass_word'];;
  }

  Map<String, Object> toDB() {
    final Map<String, Object> data = new Map<String, Object>();
    data['user_name'] = this.username;
    data['pass_word'] = this.password;
    return data;
  }
}